package com.ghostbusters.fingertrack.calibration;

import java.util.List;

import com.ghostbusters.fingertrack.wii.IRPoint;
import com.ghostbusters.fingertrack.wii.WiiMain;
import com.ghostbusters.fingertrack.wii.WiiSubscriber;

public class SymbolCalibrater<E> implements WiiSubscriber {
	
	private Signature signature;
	public SymbolCalibrater(E object) {
		setSignature(new Signature());
		WiiMain.subscribe(this);
	}

	@Override
	public void newPoints(List<IRPoint> coordinates) {
		getSignature().addPoint(coordinates.get(0));
	}

	public void setSignature(Signature signature) {
		this.signature = signature;
	}

	public Signature getSignature() {
		return signature;
	}
	
}
